package Visitor;

/**
 * @author duanzhizhou
 * @date 2024/11/12
 */
public class client {
    
    public static void main(String[] args) {
        Element elementA = new ConcreteElementA();
        Element elementB = new ConcreteElementB();
        ConcreteVisitor visitor = new ConcreteVisitor();
        elementA.accept(visitor);
        elementB.accept(visitor);
    }
}
